Complete and Advance for Things
===============================
Complete the to-do you just finished and automatically move the next to-do in that project
into Today, so every active project always has its next step in front of you.

What it does
- Completes the selected to-do.
- Finds the next to-do in the same project (in the project's own order, headings included)
  that's available now, meaning not Someday and not scheduled for later, and moves it into Today.
- If the project's next step is already in Today, it leaves things as they are.
- If the project or any of its to-dos is tagged "Waiting" (or "Waiting For"), it completes the
  to-do but doesn't move anything, because you're waiting on someone.
- If the project is in Someday or scheduled to start later, it changes nothing and tells you why.
- If you just finished the project's last to-do, it asks whether to complete the project too.
- A to-do that isn't in a project is simply completed.

Install
1. In Finder, choose Go > Go to Folder... and paste:
     ~/Library/Application Scripts/com.culturedcode.ThingsMac/
   (If the folder doesn't exist, create it.)
2. Copy "Complete and Advance.scpt" into that folder.
3. Quit and reopen Things. "Complete and Advance" now appears in Things' Scripts menu.

Add a keyboard shortcut (recommended)
System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts > click + .
Application: Things3. Menu title: Complete and Advance (exactly). Pick a shortcut, such as Control-Option-Command-K.

Settings
Open the script in Script Editor to change two settings at the top:
- waitingTagNames: the tag names that mean "waiting on someone".
- askBeforeCompletingProject: set to false to complete finished projects without asking.

The first time, macOS may ask whether the script can control Things. Click OK.

Requirements: Things 3 on macOS. Works on Apple silicon and Intel Macs. No other apps needed.
The full source code is in the "source" folder.
Provided free, as is, with no warranty.
